<header id="topbar">
  <div class="topbar-left">
      <ol class="breadcrumb">
          <li class="crumb-active">
              <a href="#op/metis_six/">超级六牌局</a>
          </li>
      </ol>
  </div>
  <div class="topbar-right">
      <div class="ml15 ib va-m" id="toggle_sidemenu_r">
          <a href="#" class="pl5"> <i class="fa fa-sign-in fs22 text-primary"></i>
          </a>
      </div>
  </div>
</header>

<section id="content" class="animated fadeIn">
  <div class="panel overflow" >
      <table class="table table-striped fs13" id="main-list">
          <thead>
              <tr class="bg-light">
                  <th>ID</th>
                  <th>局号</th>
                  <th>闲</th>
                  <th>庄</th>
                  <th class="sortable" data-field="create_time">开始时间</th>
                  <th>操作</th>
              </tr>
          </thead>
          <tbody class="admin-form">
              <% var moment = require('moment'); %>
              <% _.each(items, function(item){ %>
                  <tr data-id="<%= item.id %>" >
                      <%
                          var card_list = {};
                          if (item.cards) {
                              var cards = JSON.parse(item.cards);
                              _.each(cards, function(v, k){
                                  var card_type = v["card_type"];
                                  var hand_card = v["hand_card"];
                                  card_list[k] = hand_card + '(' + window.SIX_CARD_TYPE[card_type] + ')';
                              });
                          }
                      %>
                      <td><a href="#op/metis_six_part/?round_id=<%= item.round_id %>" ><%= item.id %></a></td>
                      <td><%= item.round_id %></td>
                      <td><%= card_list["0"] %></td>
                      <td><%= card_list["1"] %></td>
                      <td><%= item.create_time %></td>
                      <td class="text-left">
                          <a class="glyphicons glyphicons-pencil" href="#op/metis_six_part/?round_id=<%= item.round_id %>" ></a>
                      </td>
                  </tr>
              <%
              }) %>
          </tbody>
      </table>
  </div>

  <div><div class="pull-left" id="page-tips"></div><div id="paginator"></div></div>
</section>

<!-- Start: Right Sidebar -->
<aside id="sidebar_right" class="nano">
  <div class="p20 admin-form">

      <h4 class="mt5 text-muted fw500">过滤条件：</h4>

      <hr class="short">

      <hr class="short">
      <h6 class="fw400">开始时间</h6>
      <div class="section row">
          <div class="col-md-6">
                  <input type="text" title="下限，包含当天" name="searchCreatedAtLower" id="searchCreatedAtLower" class="gui-input" data-type="date" value="<%= searched.create_time_lower %>">
                  </label>
              </label>
          </div>
          <div class="col-md-6">
                  <input type="text" title="上限，不包括当天" name="searchCreatedAtUpper" id="searchCreatedAtUpper" class="gui-input" data-type="date" value="<%= searched.create_time_upper %>">
                  </label>
              </label>
          </div>
      </div>

      <button class="btn btn-default btn-block" type="button" id="search">搜索</button>
</aside>
<!-- End: Right Sidebar -->